﻿using B.MES.Customer.Domain;
using B.MES.Customer.Domain.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.MES.Customer.Infrastructure.IRepository
{
    /// <summary>
    /// 销售管理仓储层
    /// </summary>
    public interface ISalesManagementRepository:IBaseRepository<SalesManagement>
    {
        APIResult<SaleDto> AddSale(SaleDto sales);
        List<Client>GetClients();
        PageApiResut<SaleDto> GetSalesManagement(int PageIndex, int PageSize,string? LinkMan, int? ClientId);
        APIResult<SalesManagement> DeleteSale(int SaleId);
        APIResult<List<SalesManagement>> DeletesSale(List<SalesManagement> list);
        SalesManagement GetSaleInfo(int SaleId);
        int UpdateSale(SalesManagement sales);
        //List<SaleDto>CountSale(int Flag);

        List<SalesManagementDTO> CountSale();
    }
}
